<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login Page</title>
</head>
<body>
	<div id="loginContent" class="hide" align="center">
	<form action="<c:url value='j_spring_security_check'/>" method="post">
		<table cellspacing="0" cellpadding="0">
			<tr>
				<td>
					<label for="j_username">User Name:</label>
				</td>
				<td class="spacingColumn"></td>
				<td>
					<input name="j_username" class="text ui-widget-content ui-corner-all" 
					value='<c:if test="${not empty login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>'/>
				</td>
			</tr>
			<tr class="spacingRow"><td></td> </tr>
			<tr>
				<td>
					<label for="j_password">Password:</label>
				</td>
				<td class="spacingColumn"></td>
				<td>
					<input type="password" name="j_password" class="text ui-widget-content ui-corner-all"/>
				</td>
			</tr>
			<tr class="spacingRow"><td></td> </tr>
			<tr>
				<td colspan="3">
					<input type="submit" value="Login"/>
				</td>

			</tr>
			<tr class="spacingRow"><td></td> </tr>
			<tr>
				<td colspan="3">
					<c:if test="${not empty param.login_error}">
      					<font color="red">
       					Your login attempt was not successful, try again.<br/><br/>
        				Reason: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.
      					</font>
   					</c:if>
				</td> 
			</tr>
		</table>		
	</form>
	</div>
</body>
</html>